package com.carb.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 用户性别 (0: 女, 1: 男)
 */
@Getter
public enum UserGender {
    FEMALE(0, "女"),
    MALE(1, "男");

    @EnumValue
    private final int code;
    @JsonValue
    private final String desc;

    UserGender(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
